.class public Lcom/xingbook/park/ui/p;
.super Landroid/widget/RelativeLayout;


# instance fields
.field private a:Landroid/widget/LinearLayout;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/LinearLayout;

.field private e:Landroid/widget/ImageView;

.field private f:Landroid/widget/TextView;

.field private g:Lcom/xingbook/park/ui/r;


# direct methods
.method public constructor <init>(Landroid/content/Context;FLcom/xingbook/park/ui/r;)V
    .locals 9

    const/high16 v8, 0x420c

    const/16 v7, 0x11

    const/4 v6, 0x1

    const/4 v5, -0x2

    const/4 v0, 0x0

    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/xingbook/park/ui/p;->b:Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/xingbook/park/ui/p;->c:Landroid/widget/TextView;

    iput-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/xingbook/park/ui/p;->e:Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/xingbook/park/ui/p;->f:Landroid/widget/TextView;

    iput-object v0, p0, Lcom/xingbook/park/ui/p;->g:Lcom/xingbook/park/ui/r;

    iput-object p3, p0, Lcom/xingbook/park/ui/p;->g:Lcom/xingbook/park/ui/r;

    const/high16 v0, 0x41f0

    mul-float/2addr v0, p2

    float-to-int v0, v0

    invoke-virtual {p0, v0, v0, v0, v0}, Lcom/xingbook/park/ui/p;->setPadding(IIII)V

    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v7}, Landroid/widget/LinearLayout;->setGravity(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x1

    invoke-direct {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v1}, Lcom/xingbook/park/ui/p;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/ui/p;->b:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->b:Landroid/widget/ImageView;

    const v2, 0x7f0201f0

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->b:Landroid/widget/ImageView;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v3, 0x4334

    mul-float/2addr v3, p2

    float-to-int v3, v3

    const/high16 v4, 0x4334

    mul-float/2addr v4, p2

    float-to-int v4, v4

    invoke-direct {v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/xingbook/park/ui/p;->b:Landroid/widget/ImageView;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/ui/p;->c:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->c:Landroid/widget/TextView;

    const v2, -0xe74f01

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->c:Landroid/widget/TextView;

    const/4 v2, 0x0

    mul-float v3, v8, p2

    invoke-virtual {v1, v2, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->c:Landroid/widget/TextView;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v5, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/xingbook/park/ui/p;->c:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/LinearLayout;

    invoke-direct {v1, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    const v2, 0x1ffffff

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v7}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/xingbook/park/ui/q;

    invoke-direct {v1, p0}, Lcom/xingbook/park/ui/q;-><init>(Lcom/xingbook/park/ui/p;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/p;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/p;->e:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->e:Landroid/widget/ImageView;

    sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->e:Landroid/widget/ImageView;

    const v1, 0x7f020241

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    const/high16 v0, 0x42d8

    mul-float/2addr v0, p2

    float-to-int v0, v0

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->e:Landroid/widget/ImageView;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v0, v0}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/p;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v7}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->f:Landroid/widget/TextView;

    const/4 v1, 0x0

    mul-float v2, v8, p2

    invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->f:Landroid/widget/TextView;

    const v1, -0x666667

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->f:Landroid/widget/TextView;

    invoke-static {v6}, Landroid/graphics/Typeface;->defaultFromStyle(I)Landroid/graphics/Typeface;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->f:Landroid/widget/TextView;

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v5, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/park/ui/p;->f:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    return-void
.end method

.method public static a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/r;)Lcom/xingbook/park/ui/p;
    .locals 1

    new-instance v0, Lcom/xingbook/park/ui/p;

    invoke-direct {v0, p0, p2, p3}, Lcom/xingbook/park/ui/p;-><init>(Landroid/content/Context;FLcom/xingbook/park/ui/r;)V

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    return-object v0
.end method

.method static synthetic a(Lcom/xingbook/park/ui/p;)Lcom/xingbook/park/ui/r;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->g:Lcom/xingbook/park/ui/r;

    return-object v0
.end method

.method private c(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->c:Landroid/widget/TextView;

    if-nez p1, :cond_0

    const-string p1, ""

    :cond_0
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_2
    iget-object v0, p0, Lcom/xingbook/park/ui/p;->b:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    check-cast v0, Landroid/graphics/drawable/AnimationDrawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->isRunning()Z

    move-result v1

    if-nez v1, :cond_3

    invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->start()V

    :cond_3
    return-void
.end method

.method private d()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->a:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/ui/p;->b:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    check-cast v0, Landroid/graphics/drawable/AnimationDrawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->isRunning()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->stop()V

    :cond_1
    return-void
.end method

.method private d(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->f:Landroid/widget/TextView;

    if-nez p1, :cond_0

    const-string p1, "\u8f7b\u89e6\u5c4f\u5e55\u91cd\u8bd5"

    :cond_0
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/park/ui/p;->c(Ljava/lang/String;)V

    return-void
.end method

.method public a()Z
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public b()V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/ui/p;->d()V

    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/park/ui/p;->d()V

    invoke-direct {p0, p1}, Lcom/xingbook/park/ui/p;->d(Ljava/lang/String;)V

    return-void
.end method

.method public c()V
    .locals 2

    invoke-direct {p0}, Lcom/xingbook/park/ui/p;->d()V

    iget-object v0, p0, Lcom/xingbook/park/ui/p;->d:Landroid/widget/LinearLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    return-void
.end method
